migrate_to_persistent /etc/dnsdist - #524
Merged
Merged
Conversation
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideExtend persistent disk migration to include dnsdist configuration under /etc/dnsdist so it survives rebuilds/reboots alongside other system state. Flow diagram for adding dnsdist to persistent migrationflowchart TD
A[bootstrap.sh start] --> B{PERSISTENT_DISK set}
B -->|yes| C[migrate_to_persistent /var/lib/exordos/data]
C --> D[migrate_to_persistent_stop_start /var/lib/postgresql]
D --> E[migrate_to_persistent /etc/exordos_core]
E --> F[migrate_to_persistent /etc/dnsdist]
F --> G[migrate_to_persistent /home/ubuntu]
G --> H[migrate_to_persistent /root]
B -->|no| I[skip persistent migration]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Consider whether dnsdist should use the stop/start variant of
migrate_to_persistent(like PostgreSQL) to avoid potential issues if its configuration directory is moved while the service is running. - It may be worth ensuring
/etc/dnsdistexists before attempting migration, or handling the case where the directory is absent to avoid unnecessary errors during bootstrap.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider whether dnsdist should use the stop/start variant of `migrate_to_persistent` (like PostgreSQL) to avoid potential issues if its configuration directory is moved while the service is running.
- It may be worth ensuring `/etc/dnsdist` exists before attempting migration, or handling the case where the directory is absent to avoid unnecessary errors during bootstrap.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
akremenetsky
approved these changes
Jul 23, 2026
gmelikov
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Enhancements: